<%@ include file="/WEB-INF/jsp/include/taglib.jsp" %>

<c:if test="${topLine != null}">
    <c:forEach items="${topLine}" var="entry">
        <c:if test="${renderers[entry.class.name] != null}">
            <tiles:insert page="${renderers[entry.class.name]}">
                <tiles:put name="entry" beanName="entry"/>
            </tiles:insert>
        </c:if>
    </c:forEach>
</c:if>

<c:forEach items="${entries}" var="entry">
    <c:if test="${renderers[entry.class.name] != null}">
        <tiles:insert page="${renderers[entry.class.name]}">
            <tiles:put name="entry" beanName="entry"/>
        </tiles:insert>
    </c:if>
    <authz:authorize ifAnyGranted="ROLE_SUPERVISOR">
    <div><a href="<c:url value="/system/deleteentry.form/${entry.id}"/>">delete</a></div>
    </authz:authorize>
</c:forEach>

<c:if test="${!empty entries}">
    <a href="<c:url value="/homePage.form">
<c:param name="skip" value="${param['skip'] + __applicationConfig.defaultPortion}"/>
</c:url>"><fmt:message key="app.skip"/></a>
</c:if>